{template header.html}
<?php if ($banner) { $key=0; foreach ($banner as $v) { ?>
{if $key==4}
<div class="banner2_bg">
	<div class="banner2">
		<img src="{dr_get_file($v[2])}" width="100%" data-title="banner">
	</div>
	<div class="banner2_3g">
		<img src="{dr_get_file($v[3])}" width="100%" data-title="banner">
	</div>
</div>
{/if}
<?php  $key++; } } ?>
<div class="nail clearfix">
	<div class="main2">
		<div class="type left clearfix type_pc">
			{category module=share pid=4}
			<li class="{if $t.id==$catid}active {/if}mx fadeInRight" data-wow-delay="0s">
				<a href="{$t.url}">{usu_fanyi($t.name, $language)}</a>
			</li>
			{/category}
		</div>
		<div class="find_nav">
			<div class="find_nav_left">
				<div class="find_nav_list" id="pagenavi1">
					<ul>
						{category module=share pid=1}
						<li class="{if $t.id==$catid}find_nav_cur {/if}mx fadeInRight" data-wow-delay="0s">
							<a href="{$t.url}">{usu_fanyi($t.name, $language)}</a>
						</li>
						{/category}
				</div>
			</div>
		</div>

		<div class="pos right mx fadeInLeft">
			<a href="/">{usu_fanyi('Home', $language)}</a> {dr_catpos($catid, '', true, '<a href="[url]">&nbsp;→&nbsp;[name]</a>'.PHP_EOL)}
		</div>
	</div>
</div>
<div class="product main2">
	<div class="lanmu mx zoomIn">{usu_fanyi($cat['name'], $language)}<i></i></div>
	<div class="prod prod1">
		<ul class="prod_list clearfix">
			{module module=news catid=$catid page=1}
			<a href="{$t['url']}">
				<li data-src="{dr_get_file($t['thumb'])}" class="mx zoomIn pro_block" data-wow-delay="0s">
					<div class="prod_pic"><img src="{dr_get_file($t['thumb'])}" title="{usu_fanyi($t['title'], $language)}"></div>
					<div class="prod_title">{usu_fanyi($t['title'], $language)}</div>
				</li>
			</a>
			{/module}
		</ul>
	</div>
	<style>
		.pro_block:hover {
		  transform: scale(1.03);
		}
	</style>
	<div class="pages">
		{$pages}
	</div>
	<style>
		.pages .active{
			border: 0px ;
			background:#1f62c3;
		}
		.pages .active a{
			color: #ffffff;
		}
		.pages {
			margin: 40px 0 ; 
		}
		.pagination { 
			display: flex; 
			justify-content: center; 
			align-items: center;
		}
		.pagination li:first-child{
			border: 0px ;
			background:#1f62c3;
		}
		.pagination li:first-child a{
			color: #ffffff;
		}
		.pagination li { 
			border: 1px solid #ccc;
			margin: 0 5px; 
			line-height: 40px;
		}
		.pagination li a{ 
		padding: 10px 15px;
		line-height: 4px;
		}
		.pagination li:hover{ 
			background:#1f62c3;
		}
		.pagination li a:hover{ 
			color: #ffffff;
		}
	</style>
</div>
{template footer.html}
<script type="text/javascript" src="{HOME_THEME_PATH}js/buttonLite.js"></script>
<script type="text/javascript" src="{HOME_THEME_PATH}js/bshareC0.js"></script>
<script src="{HOME_THEME_PATH}js/aos.js"></script>
<script>
	AOS.init({
		easing: 'ease-out-back',
		duration: 1000
	});
</script>
<script>
	$(".nav").on("click", function () {
		$("body").addClass("open");
	});
	$("#close").on("click", function () {
		$("body").removeClass("open");
	});
</script>
</div>
<script>
lightGallery(document.getElementById('lightgallery'));
</script>
<script type="text/javascript" src="{HOME_THEME_PATH}js/touchslider.js"></script>
<script type="text/javascript">
$(".find_nav_list").css("left", "5px");
var fl_w = $(".find_nav_list").width();
var flb_w = $(".find_nav_left").width();
$(".find_nav_list").on('touchstart', function (e) {
	var touch1 = e.originalEvent.targetTouches[0];
	x1 = touch1.pageX;
	y1 = touch1.pageY;
	ty_left = parseInt($(this).css("left"));
});
$(".find_nav_list").on('touchmove', function (e) {
	var touch2 = e.originalEvent.targetTouches[0];
	var x2 = touch2.pageX;
	var y2 = touch2.pageY;
	if (ty_left + x2 - x1 >= 0) {
		$(this).css("left", 0);
	} else if (ty_left + x2 - x1 <= flb_w - fl_w) {
		$(this).css("left", flb_w - fl_w);
	} else {
		$(this).css("left", ty_left + x2 - x1);
	}
	if (Math.abs(y2 - y1) > 0) {
		e.preventDefault();
	}
});

$(function () {

	nav_w = $('.find_nav_cur').width();
	var fn_w = ($(".find_nav").width() - nav_w) / 2;
	var fnl_l;
	var fnl_x = parseInt($('.find_nav_cur').position().left);
	if (fnl_x <= fn_w) {
		fnl_l = 0;
	} else if (fn_w - fnl_x <= flb_w - fl_w) {
		fnl_l = flb_w - fl_w;
	} else {
		fnl_l = fn_w - fnl_x;
	}
	$(".find_nav_list").animate({
		"left": fnl_l
	}, 300);
})
</script>
</body>

</html>